import React, { FC, useContext } from 'react';
import { View, Text } from '@tarojs/components';
import { styled } from 'linaria/react';
import { useClassName } from '@/utils/index';
import Title from '../../_components/Title/Title';
import FormItem from '../../_components/FormItem/FormItem';
import { ApplySettledInContext } from '../../ApplySettledInContext';
export interface IProps extends ICompProps {}
MicroBlog.defaultProps = {} as Partial<IProps>;
function MicroBlog(props: IProps) {
    const { className, style } = props;
    const localClassName = useClassName('MicroBlog', className);
    const {formRules} = useContext(ApplySettledInContext)

    return <RootView className={localClassName} style={style}>
          <Title>微博</Title>
            <FormItem
                name="weiboNickName"
                label="微博昵称"
                placeholder="请输入微博昵称"
                rules={formRules.weiboNickName}></FormItem>
            <FormItem
                name="weiboFollowerQuantity"
                label="粉丝数"
                placeholder="请输入粉丝数量"
                rules={formRules.weiboFollowerQuantity}></FormItem>
    </RootView>;
}
export default React.memo(MicroBlog as FC<IProps>);
const RootView = styled(View)`
    &.MicroBlog {
    }
`;
